package com.ruoyi.travel.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 租户业务对象
 *
 * @author ruoyi
 * @date 2024-02-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WechatUserBo extends BaseEntity {

    /**
     * id
     */
@Schema(description = "id")
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 租户编号
     */
@Schema(description = "租户编号")
    @NotBlank(message = "租户编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tenantId;

    /**
     * 姓名
     */
@Schema(description = "姓名")
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 电话
     */
@Schema(description = "电话")
    @NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 地址
     */
@Schema(description = "地址")
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 备注
     */
@Schema(description = "备注")
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态（0正常 1停用）
     */
@Schema(description = "状态（0正常 1停用）")
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 创建部门
     */
@Schema(description = "创建部门")
    @NotNull(message = "创建部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long createDept;


}
